﻿using OSSUtility.Devices;
using Ozone.Device;
using SOCON.API;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ozone.Common
{
    //离心超声工位机械臂
    public class AxisMoveMent
    {
        public static bool AxisMove(string AxiePo,int nSpeed,int nRoTate,int nWaitTime = 1000*1000)
        {
            string[] ArryAxiePo = AxiePo.Split(',');
            string sAxie1 = ArryAxiePo[0];
            string sAxie2 = ArryAxiePo[1];
            string sAxie3 = ArryAxiePo[2];
            string sAxie4 = ArryAxiePo[3];
            string sAxie5 = ArryAxiePo[4];
            string sAxie6 = ArryAxiePo[5];
            if (!DevRobotByCentrifugalMachine.devRebot.RunAxie(sAxie1, sAxie2, sAxie3, sAxie4, sAxie5, sAxie6, nSpeed.ToString(), nRoTate.ToString(), nWaitTime))
            {
                return false;
            }
            return true;
        }
    }
}